diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-12-22 17:22:23 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-12-22 17:22:23 +0000 |
| commit | e6462d8438d7eccd9c3c812a65036b210cf7ae33 (patch) | |
| tree | 8357a8d304aac8b619f7632cd63a354757739efb /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests] | |
| parent | c8edd213b029e9c9a97182ee9da8f149152fe383 (diff) | |
Add symbols for tables
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]')
3 files changed, 11 insertions, 4 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 69d64a0c..175a866e 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -10,7 +10,7 @@ Function[3]: - func[1] sig=0 <f2> - func[2] sig=0 <f3> Table[1]: - - table[0] type=funcref initial=1 + - table[0] type=funcref initial=1 <Table1> Elem[1]: - segment[0] flags=0 table=0 count=2 - init i32=0 - elem[0] = ref.func:0 <f1> @@ -21,10 +21,11 @@ Code[3]: - func[2] size=2 <f3> Custom: - name: "linking" - - symbol table [count=3] + - symbol table [count=4] - 0: F <f1> func=0 [ binding=global vis=default ] - 1: F <f2> func=1 [ binding=global vis=default ] - 2: F <f3> func=2 [ binding=global vis=default ] + - 3: T <Table1> table=0 [ binding=global vis=default ] Custom: - name: "name" - func[0] <f1> diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 81acd316..cd120dd1 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -8,6 +8,9 @@ Import[2]: - table[1] type=funcref initial=2 max=5 <- ModuleName2.EntityName2 Custom: - name: "linking" + - symbol table [count=2] + - 0: T <TableName1> table=0 [ undefined explicit_name binding=global vis=default ] + - 1: T <TableName2> table=1 [ undefined explicit_name binding=global vis=default ] Custom: - name: "name" diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 5d8e2af5..d6b7a5e5 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -4,10 +4,13 @@ module.wasm: file format wasm 0x1 Section Details: Table[2]: - - table[0] type=funcref initial=1 - - table[1] type=externref initial=2 max=3 + - table[0] type=funcref initial=1 <Table1> + - table[1] type=externref initial=2 max=3 <Table2> Custom: - name: "linking" + - symbol table [count=2] + - 0: T <Table1> table=0 [ binding=global vis=default ] + - 1: T <Table2> table=1 [ binding=global vis=default ] Custom: - name: "name" |
